package com.boco.blch.runner.command;

import net.sf.json.JSONArray;

public class MultipleCommand implements Command{
	private JSONArray commandArr;
	public MultipleCommand(String command){
		commandArr = JSONArray.fromObject(command);
	}
	
	public MultipleCommand(JSONArray command){
		commandArr = JSONArray.fromObject(command);
	}
	@Override
	public void setCommand(String command) {
		commandArr = JSONArray.fromObject(command);
	}
	
	public void setCommand(JSONArray command) {
		commandArr = command;
	}

	@Override
	public String getCommand() {
		return commandArr.toString();
	}
	
	public JSONArray getCommandArray() {
		return commandArr;
	}
}
